/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartPetWaterDispenser {
    static categoryCode = '010090004';

    static categoryName = '宠物饮水机';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmartPetWaterDispenser.categoryCode;
    }

    get categoryName() {
        return SmartPetWaterDispenser.categoryName;
    }

    getCartridgeRemainingDay(params) {
        return command({
            method: 'getCartridgeRemainingDay',
            methodId: 'p1vZLi9L',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getResidualWaterVolume(params) {
        return command({
            method: 'getResidualWaterVolume',
            methodId: 'pgh0UviV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getResidualWaterVolumePercentage(params) {
        return command({
            method: 'getResidualWaterVolumePercentage',
            methodId: 'phEcQNt3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getShortageAlarm(params) {
        return command({
            method: 'getShortageAlarm',
            methodId: 'pdNCu14x',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGox3ymZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkMode(params) {
        return command({
            method: 'getWorkMode',
            methodId: 'pDrhrHoS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getYield(params) {
        return command({
            method: 'getYield',
            methodId: 'ptRSgTBG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCartridgeToDefault(params) {
        return command({
            method: 'setCartridgeToDefault',
            methodId: 'pZgubrrd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3eUeC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWorkMode(params) {
        return command({
            method: 'setWorkMode',
            methodId: 'ppAr4CDA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setYield(params) {
        return command({
            method: 'setYield',
            methodId: 'pUPQDA3r',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartPetWaterDispenser;
